const Router=require('koa-router')
const{
  verifyAuth
}=require('../middleware/auth.middleware')
const{
  create,
  list
}=require('../controller/label.controller')

const labelRouter=new Router({prefix:'/label'})

// 添加标签
labelRouter.post('/',verifyAuth,create)
// 获取标签
labelRouter.get('/',list)

module.exports=labelRouter